#include<bits/stdc++.h>
using namespace std;
int n,m;
int a[100005];
int c[100005];
int k(){
    int ans=0,pow=1;
    while(pow<n){
        ans++;
        pow*=2;
    }
    return ans;
}
int pow(int r){
    int ans=1;
    for(int i=2;i<=r;i++)ans*=2;
    return ans;
}
int main(){
    freopen("arena.in","r",stdin);
    freopen("arena.out","w",stdout);
    cin>>n>>m;
    for(int i=1;i<=n;i++)cin>>a[i];
    for(int i=1;i<=m;i++)cin>>c[i];
    int K=k();
    for(int i=1;i<=K;i++){
        
    }
    return 0;
}
//The meaning of this problem is too hard to understand.
//Can't you say it more clearly?
//You must be chinese(gu4 yi4 de).
//chinese(hao3 zi4 wei2 zhi1).